package com.xiaolin.algorithm.search.order;

/**
 * @ClassName OrderSearchTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/17
 * @Version 1.0
 */
public class OrderSearchTest {
    public static void main(String[] args) {
        int[] arr=new int[]{1,5,8,4,6,4};
        OrderSearch orderSearch=new OrderSearch();
        System.out.println(orderSearch.searchFirst(arr,4));
        System.out.println(orderSearch.searchLast(arr,4));
    }
}
